public class demo38 {
    //两数之和- 输入有序数组（双指针）
/*    class Solution {
        public int[] twoSum(int[] num, int target) {
            if(num == null) return null;
            int i = 0 ;int j = num.length-1;
            while(i < j)
            {
                int sum = num[i] + num[j];
                if(sum == target)
                {
                    return new int[]{i+1,j+1};
                }
                else if(sum<target)
                {
                    i++;
                }
                else{
                    j--;
                }
            }
            return null;
        }
    }*/
}
